package com.lc.luzhengtang.adapter;

import android.util.Log;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lc.luzhengtang.R;
import com.lc.luzhengtang.bean.ShopDetailBean;
import com.lc.luzhengtang.conn.Conn;
import com.lc.luzhengtang.view.GlideCircleTransform;
import com.zcx.helper.scale.ScaleScreenHelperFactory;

/**
 * 文 件 名: NewsListAdapter
 * 创 建 人: zhangyu
 * 创建日期: 16/12/24 19:55
 * 邮   箱: yuanchong121@gmail.com
 * 修改时间：
 * 修改备注：
 */
public class PhotoItemAdapter extends BaseQuickAdapter<ShopDetailBean.DataBeanX.EvaluateBean.DataBean, BaseViewHolder> {
    public PhotoItemAdapter(ShopDetailBean.DataBeanX.EvaluateBean.DataBean data) {

        super(R.layout.item_photo, null);
    }


    @Override
    protected void convert(BaseViewHolder helper, ShopDetailBean.DataBeanX.EvaluateBean.DataBean item) {
        ScaleScreenHelperFactory.getInstance().loadView((ViewGroup) helper.convertView);
        Glide.with(mContext).load(Conn.HOST3+item.getPicarr()).transform(new GlideCircleTransform(mContext)).error(R.mipmap.ic_launcher).into((ImageView) helper.getView(R.id.img_comment_item));
        Log.d("aaaaaaaaaaaaaaaaaaaaa",Conn.HOST3+item.getPicarr());
        Log.d("aaaaaaaaaaaaaaaaaaaaa",Conn.HOST3+item.getPicarr());
        Log.d("aaaaaaaaaaaaaaaaaaaaa",Conn.HOST3+item.getPicarr());
    }


}
